package model

import "go-admin-server/common/timex"

type OperateLog struct {
	ID        int64      `gorm:"primary_key;not_null;auto_increment" json:"id"`
	Type      string     `json:"type"`
	Describe  string     `json:"describe"`
	Content   string     `json:"content"`
	IpAddress string     `json:"ipAddress"`
	UserId    uint       `json:"userId"`
	CreatedAt timex.Time `gorm:"comment:'创建时间'" json:"createAt"`
	UpdatedAt timex.Time `gorm:"comment:'修改时间'" json:"updatedAt"`
}

func (c *OperateLog) TableName() string {
	return "operate_log"
}
